package newtank.data;

import server.GpcRequest;
import server.netty.GpcDataPackage;

/**
 * @author lijiahao
 * @since 2022/3/18
 */
public class TransDataSignal extends AbstractDataPackage {

    private static final long serialVersionUID = 2582304593871823217L;

    private final static String MOVE_TYPE = "move_type";
    private final static String MOVE_CODE = "move_code";

    @Override
    public void filledData(GpcDataPackage gpcDataPackage) {
        this.routeRequest = new GpcRequest();
        routeRequest.setHeader(MOVE_TYPE, gpcDataPackage.getRequestHeader(MOVE_TYPE));
        routeRequest.setHeader(MOVE_CODE, gpcDataPackage.getRequestHeader(MOVE_CODE));
    }
}
